<?php

session_start();

$_SESSION['username'] = 'ht';

echo '<script>location.href="test.php"</script>';